<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自定义过滤器</title>
</head>
<body>
{{ my_list }}<br>
{{ my_list | list_reverse}}
<h4>模板控制语句</h4>
{% for i in my_list %}
    {{ loop.index }}--
    {% if i >=5 %}
    {{ i }}<br/>
    {% endif %}
{% endfor %}
</body>
</html>